package com.mdd.common.mapper.competition;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mdd.common.core.basics.IBaseMapper;
import com.mdd.common.entity.competition.Competition;
import com.mdd.common.entity.competition.CompetitionMatch;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 赛事列Mapper
 * @author LikeAdmin
 */
@Mapper
public interface CompetitionMapper extends IBaseMapper<Competition> {
    List<CompetitionMatch> selectMatchList(@Param("competitionId") Integer competitionId,@Param("type") String type,@Param("schedule") String schedule);

    List<Map> selectCompetitionUserInfo(@Param("competitionId") Integer id, @Param("matchId") Integer matchId);

    List<Map> selectCompetitionRound(@Param("competitionId") Integer id, @Param("matchId") Integer matchId);

    IPage<Map> selectscheduleList(Page<Object> objectPage, @Param("query") Map<String,Object> param);

    Map selectSchedule(@Param("id") Integer id);

    IPage<Map> selectScorelist(Page<Object> objectPage, @Param("query") Map<String,Object> param);
}
